changed the direction of the slider