gets height and width even if px specified