bugfix for xz slice selection