Anti-pinching means to avoid injuries to body parts when moving side-rails or mattress supports