compute_slice(idx) should be able to accept an integer.