replacing next and prev buttons location