improved the slider