All-optical manipulation of photonic membranes