Not sure if you figured it out yet but I would just go to the edge of the screen and focus more on where the boss's position was. Plus it only shoots a maximum of 2 times so after the second shot you can always move to where it was.