remove whitespace and expoxe window dimensions