Generally speaking, the close you are to your retirement date, the less risk you should be taking.
This means investing in more less volatile things such as gilt and bonds
However, now most people are not buying annuities but remining invested in pension drawdown there is case for remaining in equities
This is more complicated than you think and I encourage people to work back - that is decide what you will doing at retirment age and then arrange a suitable investment strategy.