snake head is cake
just wait a little bit before collecting fire flys so there are more available.
the snake head will pass by mouth open then mouth closed. it won't take your flies mouth closed.
After the snake attacks high, he will attack low so don't dive down to the bottom right away.
If he attacks middle, try jump up above it or dive below it. He's really not that difficult.