If you are struggling then you should look into lower gearing.
I like to look up the road as far as I can see (when I am not checking out the view- even racers like scenery). Sometimes I imagine huge rubber bands pulling me up the climb. Mostly I think about my form and how much effort to expend.
The more you climb hills the better you get at it.