update all pages translateX when switch page