delete unused code (preview box size)