passing width and height to onSizeChanged listener