fixing preview gif problem with flipflop