add and apply slim for the template engine.