Fix bugs of Slider