Whenever you find yourself in a situation that some place is too small for an object to take it through you start to think. Even better you start to move the object around,flip it etc.
This dog did the same process. He realized that the stick is too big to take it through the bridge,so he tried it 2-3 times and you can see that he is thinking.
Finally he got the solution. What a smart dog.