correctly index element in hyperslab sub array