adjust inner size of window