only show gallery when there's something to show