fixed a small issue with the slider