fixing css bug for tablets