#gallery { width:650px; padding-bottom: 25px; }
#gallery ul { list-style:none; padding:0; margin:0; width:180px; position:relative;}
#gallery ul li {display: inline-block; width:52px; height:52px; margin:0 0 5px 5px;}
#gallery ul li a {display:block; width:50px; height:50px; text-decoration:none; border:1px solid #ddd;}
#gallery ul li a img {display:block; width:50px; height:50px; border:0;}
#gallery ul li a:hover {white-space:normal; border-color:#ddd;}
#gallery ul li a:hover img { position:absolute; left:185px; top:0; width:auto; height:auto;}