Revising resize function

#235 and #236
Improving grids for mobile views