"Spine" is a wpord for the collection of bones down your back, in the middle, not your ribs.
"Posture" decscribe how you stand, sit, lie, What shape your body forms. For example slouching is considered a bad shape, poor posture.
Poor posture, also affects you when you are asleep.
It implies that you should have good posture when you sleep.