What's wrong

AB

First i thought it was just gas but now i have no idea. My daughter is 19 months old and sometimes she has these moments like she's normal hanging fun with toys and then she looks at me and whimpers so i pick her up and she holds tight to me and lays on my shoulder and then maybe ten seconds later she's totally fine. Does anyone know what it is?