square resizes at appropriate transition