updating translate3d on figure