Rewrite layout with slim