Mainiac,  Welcome,  When the slide locks it is usually because a little piece of brass has shaved off and is floating around in there somewhere.  If it happens again take slide off and clean.  It doesn't take a very big piece.  Tolerances are pretty tight.  Use only quality ammo.  Dan