cleanup and some fixes for slider.