How to get my iphone to trust my computer when i can't use the touch screen?

So my iphones screen has shattered and parts of my iphones screen works and other parts don't.
When i go to connect my iphone to my computer my iphone asks me if i trust this computer and its the trust part that is unresponsive when i try to touch the screen. I have backed up my iphone to itunes but thats only the apps and contacts. I need to get my photos off of my phone as have a few photos required for college. And i can't sync it with itunes because i would have to delete my photos off my phone first before i can sync.

Also i can't restart my phone because the top section of my phone where you slide to the right to power off doesn't work either

Repair the phone. Genius.