update preview positioning