layout for correct frame size