In the same fashion animals with more than four legs make their movements; if you take two consecutive pairs of legs the hind always move criss cross with the forelegs; you can see this if you watch them moving slowly.