Updating demo, only resize if dimentions change