fixes gallery button on posts form