fix loop when less than 3 posts
removing the slideshow when no posts