Fix Back/forward mouse button behavior

Back and Forward buttons on mouse changed the hash url but didn't change
the slide correctly