change height to max-height