Not sure what you’re asking. You can always sell your shares at a loss or a gain according to the current price and withdraw that money. Why should there be any compulsory intermediate investment? 3-5 years is medium rather than long term.
you only need to do the transactions you feel you need to make in order to invest successfully. the platform has no fee’s and no activity restrictions that need to be taken into consideration.
although, responding to the example, I am not sure that apple would be a good company to buy and hold for so long if you aren’t planning to add to it over the next 3-5 years and you just left your account alone. you will get better returns if you can make additions to your portfolio over that time period.