getting the scrolling to recognize the slide number