fixing window dimensions