Array slicing by range/another array and other stuff