Freaking cough

Au

So I caught my 9 year old’s cough🙄. It’s only bad when I lay down. Even with a pillow at a recline. I will start feel my throat tickle and bam a coughing fit. It’s been two days without sleep and I don’t want to pass it to my 2month old also took meds and nothing. . Anything to help?