make frame smaller to fit the laptop screen