fixed slice aguments bug for $slice operator