Sounds like the little spring that controls the slide lockback lever is weak or bent. My daughter recently bought a new Glock and it was doing the exact same thing. I took it apart and found the spring to be bent. I called Glock and they sent me a new one. Any Glock Amourer can do this repair in about 3 minutes.