set max-height for carousel