robust slice ranges; separate files for stacks to avoid npz issue with large files