Borussia Dortmund kept pace at the top of the Bundesliga with Bayern Munich with a 5-2 win over Monchengladbach.