word/memory: adjust grid count to fit size