Green’s Dictionary of Slang

slam v.2

[slammer n. (2a)]
(US)

1. to imprison.

[US]H.E. Roberts Third Ear n.p.: slam v. to jail; e.g. That door will slam on you.
[Aus]Adamson & Hanford Zimmer’s Essay 69: She had a tough run in The Bay, and went bad after some screw slammed her with the hoons.
[US]J. Ellroy ‘The D.A.’ in Destination: Morgue! (2004) 144: His dad slammed Big Bill Tilden for honking young boys.

2. to place in solitary confinement.

[Aus]Adamson & Hanford Zimmer’s Essay 78: Glaister was charged with possession of contraband, and slammed in the black peter.
[US](con. 1984) K. Scott Monster (1994) 326: I’m supposed to lock you up in the Hole. But [...] I got no cause to slam you.

In phrases

slam up (v.)

(US Und.) to imprison.

[UK]F. Norman Too Many Crooks Spoil the Caper 10: They had him slammed up in a cell in Tower Bridge nick.
[US]S. Morgan Homeboy 146: Jist cuz you gonna be slammed up three years dont make her a nun.
[UK]Guardian G2 23 Feb. 23: Hard cons slammed up in a New Orleans jail.