Changing the slider orientation