how to convert html to slim