removes invisible buttons overspilling from hidden sidebar