Fix preview of S3 datasets

Retrieval of S3 file subranges was not implemented correctly