imprve UI - dynamically set the position of the preview box