Added automated height detection and slideshow resizing.