Liquid sloshing in containers with flexibility