handling checkbox input; set width & height