adjusted height resizing function in script