Optimize jQuery image gallery for production
It's quite fine, but it can be simplified a little bit.
In the HTML, the img elements all have the same style value.
It would be better to remove the style attribute from all the img,
and define in the stylesheet instead:

#gallery img {
    max-width:150px;
    max-height:50px;
}