Merge "Add subtype for layout direction to Slice" into pi-dev