Added margin class to thumbnails on templates for secondary pages