preview box position correction