Create 3D slices to show the pore structure inside the simulation cubic

Hello, everyone, attached is the 3D slices showing the pore structures inside the simulated box. Herein, the occupied and unoccupied(pore) volumes are shown in red and blue, respectively. 
Do anyone have idea how to create such graph?
Thanks in advance.
User-added image