Added the possibility to resize grid