I know my layout is a bit messed up. If you could help me clean it a bit and maybe rearrange it, maybe that will help with the performance (also to solve the weird issue I have with the shadows which is why I need to change the Support Action Bar Elevation each time).

Much appreciated. I figured out how to minimize the slack by equipment speeding up, evacuating movement and pointless code. Albeit notwithstanding when I don't put any picture in the second part (the one with the tabs), there is a little slack that doesn't happen when I tap on the others or when I open the same piece a second time.

Is there an approach to introduce the piece before opening it, so that once it is opened it will be stacked and won't slack?