Fix slicing issues

In addition:
 * unify slicing
 * performance improvements, especially for string slicing