Say the mirrors are a distance L apart. In the clock's own frame, one tick takes t₀ = L / c. To you watching it move at speed v, the photon travels a diagonal whose horizontal leg is v·t and vertical leg is L. Since the photon still moves at c, the diagonal length is c·t:
(c·t)² = (v·t)² + L²
Solve for t and you get the famous Lorentz factor, usually written γ (gamma):
t = γ·t₀ , where γ = 1 / √(1 − v²/c²)
At everyday speeds v/c is tiny, so γ ≈ 1 and nothing seems to change. Push v toward c and γ shoots toward infinity — which is why the slider's effect explodes near the top.