Removing dead code from Slider