[Urgent] Setting the index in a volume viewport

I was able to load the volume from a set of local dcm files. After loading them in each view(coronal, sagittal, and axial), i want to set a grid type where i can view images of each slice in a ‘n’ viewports (n is number of slices in a particular view).
Can we somehow set the image index to be appeared in a volume viewport. After rendering it in volume, i was able to get the number of slices present in that view using
*[getNumberOfSlices](which is n)(VolumeViewport | API | Cornerstone.js)
method. But i want create n viewports and set each image index from 0 to n to render all the set of slices in a grid view in 3 different views(coronal, sagittal, and axial).

Can someone help me with this?