Mating Crabs?

I took these two images of a pair of crabs as I have never seen crabs like this before. The crabs were walking along next to a rock pool when I managed to get the shots. I imagine that they are mating, if not, I would like to know what the behaviour signals!