slideshow: remove duplicates and compress images a bit