Window resizing startup script