adds some basic length limit to caption