section.gallery span img, section.gallery span { border: none; overflow: hidden; float: left; } section.gallery span:hover { border: 2px solid #9D9FA2; } section.gallery span:hover img { margin: -2px; }