cast layout container width and height to ints