Solved an error in slideshows