set minimum size of frame