added slim support for layouts