change grid table to div layout
detect resize event