some magical jquery to center thumbnails