fix inline gallery