added comments. separated background slideshow into a function.