I feel like the code I have written above should be the way to go in the future but for now I create a new class for the widget in each slot with an index variable.
A (unnecessarily) complicated workaround but that is what you gotta do with beta software…