My Ds has recently started to do this, especially when he is sitting in his high chair. He will weave from side the side (a bit like how an elephant will weave his head) for a few seconds. It seems to be something that he is doing voluntarily, and if he is busy with a toy / distracted, he doesn't seem to do it.
We've just moved area and I haven't had a chance to register with a GP yet, but will do that as a priority this week, in the meantime, would appreciate it if anyone who has had experience of this can advice!