Render gallery from template