Best thing to do is throw it in neutral. Never throw it in a gear that is going to slow you down quickly. When you throw it in a lower gear the compression is trying to slow you down and will make you slide even worse. Tip for next time.
Or you could of tried to pull the ebrake to try and slide the car around a different way, but that is me talking in front of a computer and not sliding when it all happens in a matter of a couple of sec.
Positive is it is going to get fixed and you didn't get hurt, but if it happens again try the nuetral trick