slideshow works in very poor way