Added logic to prevent front page menu items without gallery images showing on front page