before new slideshow class