Added the option to have a looping gallery with 3 or 5 items

The default is 5. It won’t work with any number other than 3 or 5 at
the moment.