resizing script