Put the carousel view logic into a partial.