Changing translate3d to translateX and translateY for performance