rearrange image boxes