1. A method comprising: receiving information about a story in a social networking system, the story comprising a plurality of images and text associated with the plurality of images, wherein the plurality of images are part of a photographic album; determining a plurality of configurations, wherein each configuration of the plurality of configurations comprises the plurality of images arranged in a different order; combining the text with each configuration of the plurality of configurations and computing a respective readability score for that combination, the readability score indicating a measure of a likelihood of a user of the social networking system is able to read the text when overlaid onto the respective configuration and the readability score is based at least in part on one or more attributes of the plurality of images, one or more attributes of the text, or any combination thereof; comparing the readability scores with a threshold value; selecting the configuration having the highest readability score; generating the story including the text and the selected configuration based on the comparison, wherein if the readability score for the selected configuration of the plurality of images equals or exceeds the threshold value, the text is overlaid onto an area of the selected configuration, and if the readability score for the selected configuration is less than the threshold value, the text is positioned adjacent to the selected configuration of the plurality of images; and sending the story for display to a client device associated with the user.