Fixed a bug in computation of slice's stride