refactor the focusSlide