made gallery work with ie9

I shouldn't really, but this is the website I'm the most proud of, and
ie9 has 21% usage share