Extracting patches using sliding window?

Sorry to bother you again but as you can see these are 2D images of axial/sagittal and coronal planes.
I want to implement 3D CNN model for classification and further I want to implement localization techniques as well for automatic calcium scoring.

This is an example of 2D CNN model implement on extract patches

but I am little confuse and following is my question if you can guide me

How can I change this model into 3D CNN. As this is implemented on all X/y/z planes as I follow some articles but there is no example of all planes they just implement it on Axial images?

Thank you in advance