fix for reflow of inline thumbnails