Fixed variable alignment issues in slideshow.