Add classes dynamically to subtitle