dynamically render marker based on width