adding background cover attribute to class