In a female client with burns on the legs, which nursing intervention helps prevent contractures?