dyanmically updates gallery on front page