Merge "Support slicing by chain." into pi-dev