fixed flickering on slides with code blocks, closes #8