Bit of refactoring trying to get the animation done using translate3d rather than switching img src