add the effect of expanding and shrinking