Adding event resize.