Forget about Google. This is simply a bad idea, in fact a very bad idea. Duplicating content as you have, means that you need to maintain the identical content in three different places. This may seem fine to you at first, and it may well be. Add a few more pages constructed similarly and the passage of time and you wont know what goes where and why and how and then you will screw things up and you wont be able to make odds and ends of what is on your pages.
I doubt Google really cares that it appears three times on the page, but it will make you page 3x time bigger and thus load much slower than it needs to. Page speed is a ranking factor, not a big one, but why make it slow if you can make fast.
What you have shown in your code example and what @closedForLunch's suggested avoids the duplication of content problem but it still makes for needlessly complex page that will likely load slower than it needs to due to the use of jQuery. If executed incorrectly it can cause your content to be hidden from Googlebot which is the last thing you want.
Google indexes a page it looks at both the page that is served AND the page that is rendered.
Yes that is true, but indexing is immediate and rendering is not. Rendering can occur weeks after indexing and may never occur. One can not depend on the rendered view. For sites that depend on JS, such Single Page Applications (SPA's) Google stronlgy recommends to have a system to render the pages server side for Googlebot to crawl.
I was not able to use Bootstrap; the layout of the pages is a bit unusual and doesn't lend itself to the options Bootstrap provides.
I have my doubts that this actually the case, I have made many a webpages using Bootstrap some very complex and all responsive. You can do pretty much anything you want, however the result is usually a bloated code nightmare not much better than the situation you describe. My suggestion is to use a css flexbox, it is used extensively in Bootstrap 4, but by using it directly you can avoid all the useless bloat. [
w3schools.com...]
I suggest that you generically explain what you are trying to achieve and I and others will gladly help you come to a solution that works and that is simple.
btw: Welcome to WebmasterWorld.