optimize js - hotel effects and gallery