refactor html to slim