Djokovic slips to third as Medvedev tops ATP rankings