PreviewComponent rearrange images on resize