IPhone 5 stuck between camera and homescreen?

I tried to slide open the camera while on the homescreen, but it stuck. It went into sleep mode but the camera didn't close completely so I have the bottom of that with my home screen. I can't enter my passcode and the phone won't sleep. I can't reset it because my power button doesn't work. Will I just have to sync it to an older file?

Do you have a warranty

Let it die, then plug it in. That should reset it without you needing to use the power button.