resizing the widget