fix incorrect padding
Merge pull request #16 from PreetamJinka/15-slice-padding

Fix incorrect padding