Resolved issue for prev-next slideshow