On the dynamics of the Szekeres system