[TASK] introducing maxWidth and maxHeight