Expansion and collapse of the prview div