convert index from erb to slim