make sticky and closed bracketed spans