cleaned up script and made carousel the gallery