Let's try this again.........
I was 23 weeks when the doc discovered my cervix was shortening. I apparently was having contractions but didn't know it. I stayed in the hospital the first month, placed on meds to stop constractions and then at home bedrest for 2 more months......made it all the way to 37 1/2 weeks when my little bundle of joy was delivered full-term and healthy
Your situation is not as severe as mine was but I wanted you to know that even in worse cases, it can work out just fine. Take it easy and follow your doc's orders to the letter.
HTH and wishing well!