render template function on slide class to remove any whitespace in all of the slide templates