Refactored data slicing
If slicing has been requested, and total datasize is 0, the total parameter will still be included in the response