Waking up crying

Am

OK so my baby is 5 months and for the past month has been waking up after about 4 hrs at night and so I give her her pacifier. She used to sleep a long time after that but now she'll wake up two or three times more and so I finally feed her.. How can I get her to sleep better and longer? Or maybe she'll grow our of it.