implementing the functionality for the carousel and thumbnails on the looks page