Move the slider to the right place