resizing gesture widget without repainting