making character buttons max out at 5 per row