Right, the convergence is not uniform in x. However, I hope that what I have is good enough for my aim. In another expression, I need to eliminate n, which works if f(n,x)=g(x)+n/3+o(1).
Before posting my question here, I consulted it with my colleagues and studied corresponding texts on internet. Without any convenient response.