Gamma rays precursors and afterglows surrounding UHECR events: Z-burst model is still alive