Thumbnails automatically recalculate its margins