bug fixed for Slider.dispose