<article class="item">
<div class="img_preview">
<img src="images/img/3.jpg">
</div>
</article>
article .img_preview {
max-height: 500px;
overflow: hidden;
text-align: center;
}
article .img_preview img {
display: table-cell;
vertical-align: middle;
}