Modified method genSliceStr

Added a condition for a null step expression. inserts a one increment in that case.