There are always ways to improve posture which helps the spine to be flexible for a long duration. One of the things to be taken care of is to maintain posture while sitting and standing.
Some exercises like muscle strengthening, bed positioning tips, and good walking habits should be followed regularly and consistently of course with the doctor’s advice only.