Regulate preview box border