dirtier hack for grid layout, will soon be rendered useless