How to 'get slice index'?

go with this solution:

getridofzero.v4p (3.0 kB)