unpretty solution for aligning componenets with the edge