Green’s Dictionary of Slang

slat n.6

[? Irish slat, a rod or measuring stick]

(US black) used as a term of quantity, esp. in the context of the length of a prison sentence; thus a prison sentence.

[US]‘Iceberg Slim’ Pimp 290: A pimp ain’t got the heart to do a slat down there.
[US]‘Iceberg Slim’ Airtight Willie and Me 73: I caught a slat in the joint on the coal pile.