convert templates to slim