move dim, dim_as_array to container