<head>
<script src="jquery.js"></script>
<script>
$(document).ready(function(){
$("#slidin").click(function(){
var div=$("div");
div.animate({width:'10px'},"slow");
});
$("#slidout").click(function(){
var div=$("div");
div.animate({width:'300px'},"slow");
});
});
</script>
</head>
<body>
<button id="slidout">Out</button>
<button id="slidin">IN</button>
<div style="background:#98bf21;height:100px;width:10px;position:absolute;">
//put our grid here
</div>
</body>