How do I limit the number of images displayed in the gallery created on the homepage?