Easy conversion of slices to GL arrays.