Apple patent filing hints at more flexible iPhones and other devices