finish buttons prev and Next in slideshow