Example showing how to handle dynamic slideshows that may or may not have more than 1 slide.