Made carousel into a template.