Take the pads out and pump the lever a little bit gently to push the pistons out. You may find one moves more easily – hold it in and pull the lever again to get the other one to move. Clean the exposed part of the piston and lube – some folk use brake fluid – I use silicone / rubber grease. Push piston back in and refit pads – this might work if the piston is not in too bad shape. You can work the piston in and out a few times
Otherwise its a case of removing the pistons completely and cleaning them up – if you do this you might get away without new seals but I wouldn’t do it without new seals to hand as seals are cheap and there is a good chance you will damage the seals.
Don’t use GT85 or similar to lube the pistons – it might contaminate the seals and make them either swell or leak.