Walking horizontally, man has to work against friction force of rough surface.
But walking on slope, man has to work against (friction force + gravitation force)
Hence, walking on slope required more work.