Control motion with the slider