attempt at window resizing