rule for hiding captions within galleries