add overflow and visibility styles