We duplicate the `preview` information here. I know it's used in the partial for css purposes and there we probably can't take it easily from the layer directly. Should we aim for that?