Slicing submasks in get_param.

Reads the entire array which will not be the most efficient solution.