Layer Slider not behaving right on a home page.

Layer Slider not behaving right on a home page. Once it will show 5 images and will start from the beginning, last 5th image will stay visible.