The Medway Valley Line is to be part closed for landslip prevention works and track replacement.