scipt for resize