A motor with a reasonally low speed out put, driving a threaded rod with a nut on it to provide movement, and micro switching to control travel. Could be a wiper motor, with the shaft extended, that's quite easy, I did it to fit a sproket on the motor I use to power the table on my vertical milling machine, speed adjusted with resistors. Ian S C