set minimum size of mainframe