refactor activeSlider