adding a check for window size and loading more images