How to get my baby to gain weight?

B

My daughter is almost 6 months and is 16 lbs but the doctor told us that she needs to be chubbier. She's eating rice cereal and yellow vegetables twice a day and BF in between but when she's breastfeeding she'll only feed for 2-3 minutes then pull away. I feel like she's not getting the hind milk that has more fat. The doctor said she'll only take however much she needs so I don't want to force her to feed longer if she's not hungry but I don't know how else I can get her to gain more weight. Any suggestions? 😩😩