UK Reit charges 20% tax for dividend, can I sell it before the dividend date then buy it back to avoid it? Or it charges for everyone then sends to their accounts so I don't even need to do that?

By the way I am not an UK resident and try to invest in UK Reit as a foreigner through local IB brokerage. What other tax or fee I need to consider?

About Me:
I'm new in this forum, I am a consultant and have worked with multiple firms
You can check Online video marketing introone of my work.