made retrieve_slices_by_block_and_conflict more efficient