You have to go into the salvage matrix and modify the weapon by adding mod slots sto it. They are random and cost ark salvage, so you may have to try a few times before it adds the slot you need for a certain type of mod