##They're synonymous in your example but "To and Fro" allows for more variety of movement.##

Jason points out in the comment that "to and fro" means movement an (any) opposite directions, not just side to side. It also relates to moving between two locations.