Good Day @tom, I tried your approach and it actually keeps the dimensions when applying filters.
But i have to ask:

Could you explain, How you choosed these transpose operations ?
Which logic are you following to move the axes?

I will appreciate if you could explain or point me in the right direction of what is being done.
thanks!