Constant length stroke with means to displace end limits