trying to make the carousel work properly