Basic dynamic grid layout

This will be used for the dialogue screen.