fix bug with deleted images in slideshow
fix bug when last media is deleted
Add rotate and delete buttons for slideshow