Gmx select to get index of upper and lower leaflet residues in bilayer

Hi

I think it is possible to create a index group for upper and slower leaflet using z as reference. But maybe that some rethinking on the order of the definition is needed ( Here is selection syntax https://manual.gromacs.org/current/onlinehelp/selections.html?highlight=selection).

Maybe this conversation is useful

\Alessandra