set max size of display.