refactor slideshow code
fix svg previews