added width and height to addToGrid item parameter