Remove the bedding from your bed and stack the mattress and box spring on their sides out of the way.
Place a rubber furniture caster cup under each leg of your bed frame. These caster cups will keep your bed frame from moving on the hardwood floor regardless of whether your frame has casters or not.
Adjust the bed frame where you want it to remain.
Replace the box spring and mattress on the bed frame. Put the bedding back in place.