Semi-automatic pistols and rifles use the pressure of the fired cartridge to move the slide backwards. A fraction of a second later, the slide moves forward loading a fresh cartridge into the chamber. The magazine uses a spring to feed one cartridge at a time into the chamber.