Sliding to the bottom of the crib

Angela

Hi everyone! My baby has acid reflux and needs to have her crib mattress inclined. However she keeps sliding to the bottom causing her to wake up in the middle of the night. Any ideas on how I can prevent this?! I’m desperate!! Thanks 😊