Having problems with grid resize