Black_Star,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
.div{
width:300px;
height:200px;
background:red;
display:none;
}
#left{
position:absolute;
top:210px;
}
#right{
position:absolute;
top:210px;
left:74px;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script>
$(function() {
$('#left').click(function(){
if($('.div').is(':visible')){
$('.div').hide('slide',{direction:"left"},700);
}else{
$('.div').show('slide',{direction:"left"},700);
}
});
$('#right').click(function(){
if($('.div').is(':visible')){
$('.div').hide('slide',{direction:"right"},700);
}else{
$('.div').show('slide',{direction:"right"},700);
}
})
});
</script>
</head>
<body>
<div class="div"></div>
<button id="left">Slide left</button>
<button id="right">Slide right</button>
</body>
</html>