fixing new gallery post method