really hot during sleep mode
First, can you describe the degree of "really hot"? So hot that you can't keep your hand on the heatsink. So hot that if you were to keep your hand in contact with the heatsink it might cause discomfort and eventually some potential burn mark on your hand? This kind of hot? Can you keep your hand on the heatsink without feeling discomfort yet still report it as very hot?
Answering this will help understand the degree of heat being described as "really hot".
Despite this, I would consider turning off the machine, letting it cool and then proceed with removing the heatsink, removing the old thermal paste with thermal paste remover and then apply new (not expired) thermal paste. This would be my first step especially if touching the heat sink results in discomfort and an urge to remove your hand from the heatsink.
After doing this you could rule out old thermal paste as the culprit, which I assume you have not yet changed.
So I recommend new thermal paste and then test the machine.
If heat persists then ensure that those fans are operating as expected.
Replace the 3.6V battery
----------Remember, your machine is old now and as it ages further parts lose their resilience and need replenishing. This is a matter of fact.
Don't dismiss the articles below based solely on their titles, please read them they can help you relate the contents of your question to potential reasons for the reported heat issue. I wouldn't put them here otherwise. Basically the machine may not be going into sleep as prescribed so a reset may be due but please read these articles as there are precautions declared that I advise you review to avoid damaging the main logic board.
Power Mac G4 (PCI Graphics): Resetting the Logic Board
Power Mac G4 (AGP Graphics/Gigabit Ethernet): Resetting the PMU on the Logic Board
Power Mac G4 (PCI Graphics): Resetting the Cuda Chip
Let me know how it goes but in summary, new thermal paste and a new battery are highly recommended.
Cheers!
—Alex