Removed extraneous content div; main-container div sufficient; resolved error in which two clicks needed to render photos'