Programing Arduino UNO with h bridge stepper motor nema 17 and potentiometer

Do you want to achieve continuous steady movement, or have the slider stop while each image is captured?