modify focusSlide function