code cleanup on slideshow
sidebar code cleanup and comments