fixes carousel sliding too far
loop the carousel animation
Merge pull request #312 from G5/gallery-fixes

Gallery fixes