Slider minor code cleanup