Add layout information to slices

Moves slice stuff to common.

Shows a proposal for how we can do the layout of slices in Scala and then just iterate over columns in the Play template.