changing pagination dict structure in response structure