Step-by-step mechanisms for linear motion