Fix the slicing
Make sure to open all HDF5 files read-only