adjust max-height n max-width