fixed flickering on slides with code blocks, solves #8