work with galleries when comment and create new post. changed dialog class (not in all places)