add offset to compute the absolute position of the grid