After add twoside parameter I got white spaces between some elements. I create an overleaf example https://www.overleaf.com/read/tfbpqxtrqpjz
You can see that adding twoside parameter will add blank vertical spaces.
How can I use twoside and openright parameters without adding the blank vertical space?

reportandbookdocument classes use the setting\flushbottomif thetwosidedocument class option is active. To override this setting, issue the instruction\raggedbottomimmediately after\begin{document}. – Mico Jan 31 '19 at 05:53