Fixed IE 8 gallery/thumbnail bug.