Added responsive setting of w and h