main gallery mozilla fix