fix script/gen_gallery.py for new time stepping