Step by step slider2

HTML

<div class="move left"><</div>
<div class="move right">></div>
<div id="container">
    <ul>
     <li id="box1" class="box current"><span>avsn9849625263</span></li>
      <li id="box2" class="box"><span>b.venkateshbabu07</span></li>
                  <li id="box3" class="box"><span>baburamesh_2008</span></li>
            <li id="box4" class="box"><span>baburamesh_ch1</span></li>
            <li id="box5" class="box"><span>chrb.rameshbabu</span></li>
            <li id="box6" class="box"><span>chrb.rameshbabu</span></li>
            <li id="box7" class="box"><span>chrb_rameshbabu</span></li>
            <li id="box8" class="box"><span>chrbrameshbabu51</span></li>
           
    </ul>
 </div>

CSS

body {
    padding: 0px;
}
#container {
    position: absolute;
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.box {
    position: absolute;
    width: 50%;
    left: 150%;
    top: 100px;
    margin-left: -25%;
    background: #ABA38F;
    color: #fff;
    padding: 5px;
}
#box1 {
    left: 50%;
}

.move {
    position:fixed;
    z-index:2;
    top:50%;
    margin-top:-20px;
    text-align:center;
    padding:20px;
    background:#fff;
    color: #000;
}
.left {
    cursor:pointer;
    left:0;
    width: 1px;
height: 1px;
border-radius: 30px;
background: #BABABA;
color: #fff;
clear: both;
display: block;
text-align: center;
font-size: 20px;
line-height: 3px;
}
.right {
     cursor:pointer;
    right:0;
    width: 1px;
height: 1px;
border-radius: 30px;
background: #BABABA;
color: #fff;
clear: both;
display: block;
text-align: center;
font-size: 20px;
line-height: 3px;
}
ul{
    list-style: none;
}
li{
    float: left;
    margin: 5px;
    background: #ABA38F;
    color: #fff;
    padding: 5px;
}
li span{
  width: 150px;
  text-align: center;
}

JavaScript

var i = 1;
$('.right').click(function () {
    if (i < $("#container ul li").length) {
        $("#box" + i).animate({
            left: '-50%'
        }, 400, function () {
            var $this = $("#box" + i);
            $this.css('left', '150%')
                .appendTo($('.container'));
        });
        $("#box" + i).next().animate({
            left: '50%'
        }, 400);
        i++;
    }
});
$('.left').click(function () {

    if (i > 1) {
        $("#box" + i).animate({
            left: '150%'
        }, 400, function () {
            var $this = $("#box" + i);
            $this.css('right', '-150%')
                .appendTo($('.container'));
        });
        $("#box" + i).prev().animate({
            left: '50%'
        }, 400);
        i--;
    }
});