Added captionHideClass functionality