add preview bar, pix and js to hide / show it