Fixed the issues of slider.