improvements on carousel JS