you can use the "expedited route". you have at least 3 options
1. immigration at t3 and transit landside, then up to First Wing (or fast track if you prefer) to have your photo taken and clear security
2. transit airside, clear immigration in t5 and then up to First Wing (or fast track if you prefer) to have your photo taken and clear security
3. transit airside, following the signs to flight connections in T5 and then go through the transiting to a domestic flight where you will clear immigration and have your photo taken and then clear security at transit "fast track" ( there are many threads that discuss if this is really fast track or not so lets not go there)