Click the green flag.
To change the way that the rectangles grow & shrink, you can set the costume center to a different spot -- even a spot outside of the rectangle!