Fix bug with markup break

Thumbnails next/prev buttons shifted markup after appearance.