When it opens its mouth throw a bomb into it. Up here you will see a wooden bridge. Use it to get to the top.