Thank you all. I think I figured it out, based on the answers. I was slipping the first stitch of every row, but I was slipping them knitwise, which was wrong, as Redheadrachel pointed out. Also, I was purling the last stitch of every other row, so I fixed the pattern so that I will knit the last stitch of every row.
Now it works!