Added slim support to layouts