Added slice numbering to stackToVideo.