There are many different ways that you can accomplish a gallery. Are you using a database? do you want to track views? photo voting? comments? uploads?
I don't know about a tutorial but if you have a question about how to do something I'll be glad to help.