correct frame/panel size