add class to html teg and set width with media query