There are a few ways to unlock the 4th weapon slot in Borderlands 3. One way is to reach max level with all of your characters. Another way is to find and complete the "A Better World" side quest.