How can I divide my simulation box into slices of a select thickness?

GROMACS version: 2020
GROMACS modification: No

Hey,

I was wondering how I can divide my bilayer simulation box into slices of a certain thickness so I can count how many atoms of a certain type are in my slice so I can histogram this?

Thanks so much!

Anna