Resizing of bg frame