You should not have the line
tableSlider.run();
inside any IF statement. It should just be inside loop() so it is called as often as possible. The library will stop sending pulses when the motor reaches its destination
I'm not sure if you should be using moveTo() or move()
...R