Difficulty passing gas

Starting this week my it's painful and harder for my baby to pass wind. Before ot wasn't much of an issue. What could the cause be? I breastfeed and eat no diary. Do I have to eat more liquid/soup?