Fixed the slider issue