Extract specified segmented slices


Good morning, everyone. I would like to know if there was a way to automatically extract only the slices of a specific vertebra.
For example, in the image I attached I would like to extract only the slices related to the T2 vertebra; is it possible to do this? Thank you very much.