display preview images based on space available. fixes so more icon displays correctly and doesn't display over anything else