Slider: cleaned up page adjustment code.