How can get id slice?

Here is another relevant discussion which you might find helpful: Print dataprobe text with shift key