A majority of semi-automatic pistols (revolvers excluded) have a spring-loaded component called slide as a part of their firing mechanism. Although historically there are designs without a slide, (notably Mauser C96), those are, if not non-existent, very rare after the World War II.
It probably is safe to conclude that the displacement of other designs are due to some advantages in the slide mechanism. What are those advantages?