fix slide bug when preview theme