vertical center function for skills