Towards a realistic simulation of plate margins in mantle convection