Loading the images dynamically through ajax would improve performance for large galleries - and also allow changing gallery images dependent on some logic. There could be some menu with different gallery types and when selected the gallery could by dynamically updated to load specified images.
Also together with lazy loading, it could be possible to implement endless image streams, i.e. a flickr feed or something similar.