resize graphics when toolbars expand