PS1 shader effect

I have a problem, i followed your tutorial but it seems like it moves faces instead of vertices, so there are gaps. How can I fix this?