Two particles with bistable coupling on a ratchet