Added array slicing

In case anyone else finds this useful.