carousel can now accept any number of images

I've just changed the carousel buttons so they can be synchronised with as many images as the user decides (rather than just 3).