The Streamlight TLR-8 G Sub will not be compatible with the Glock 20. You would need to use the Streamlight TLR-8A Weapon Light and Laser which includes rail keys that adapt to the Glock accessory rail. It can be found by using the link below:
https://www.opticsplanet.com/streamlight-tlr-8-a.html