Fixed slideshow when image was deleted