fixing css for flipping