I put him into the pitcher with the squashed up peas in it. He wasn't feeling too well so he didn't eat much and eventually went back to flopping on his side, so I figured that was enough.
He is still not his old self; he occasionally gets tired and tips onto his side. But he is nowhere near as bad off as he was, and is upright most of the time, eating well, and able to swim about the tank.