Implementing the gallery view for the application