add better filtering of siblings regaring pre and img tags