updated responsive grid code for pure 0.5.0