Make sure callback only triggers for HTML galleys