turn layout into grid rather than table