dynamic resizing of top frame in ShowCapture activity