refactor Slider