Only resize if dimension change