simple example script how to understand made a slideshow responsive layout