storing allocated grid memory; allocated size is multiple of 16.