fixing js equal height in tablet