You can use a cable joint to link the translational motion of a prismatic joint to the translational motion of another prismatic joint.