Work done against gravity when a body is moved horizontally along a frictionless surface is zero.
Force of gravity acts vertically downward, while the body is move horizontally. Thus, the force of gravity is not causing the motion. So, the work done by the force of gravity is zero.