Two tabs on the same page?

enter image description here

In a page we're designing, we have an issue of there being two tabs (closely positioned) and I wanted some suggestions for alternatives. Essentially in this page, we have a main tab that serves the function of switching between different tables. This function can't be changed but can be displayed differently (drop down wasn't working out). The second tab appears when the user clicks a button on the screen, and a slider opens up into half of the table. In this slider there is another set of tabs. Do you all have any suggestions as to how to maneuver this? Sorry if I'm being unclear, let me know if I can help clarify. I have attached an image for context.