add slider and change functionality to adjust speed on the fly